package com.fxp.project.jiuselu.web.business.v1.controller.commission;

import com.fxp.project.jiuselu.web.base.controller.BaseController;
import com.fxp.project.jiuselu.web.domain.CommonResult;
import com.fxp.project.jiuselu.web.models.commission.entity.JslCommissionRation;
import com.fxp.project.jiuselu.web.models.commission.service.JslCommissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/v1/commission")
public class JslCommissionRationController extends BaseController {

    @Resource
    private JslCommissionService jslCommissionService;

    @GetMapping("poundage")
    @CrossOrigin
    public CommonResult getpoundage(){
        return CommonResult.success(jslCommissionService.selectJslpoundage());
    }
    @GetMapping("tx")
    @CrossOrigin
    public CommonResult gettx(){
        return CommonResult.success(jslCommissionService.selectJslTx());
    }
}
